package com.hrt.day06.pattern


/**
 * 元组匹配
 */
object PatternDemo7 {
    def main(args: Array[String]): Unit = {
        val t: Any = ("lisi", 20)
        
        t match {
//            case (name, age) => println(name)
//            case (name: String, age) => println(name)
            case (name: String, age) => println(name)
        }
    }
}
